package net.qhzw.admin.controller;

import com.mysql.cj.util.TestUtils;
import com.mysql.cj.x.protobuf.MysqlxDatatypes;
import com.sun.org.apache.bcel.internal.generic.NEW;
import net.qhzw.common.model.JsonResult;
import net.qhzw.common.util.DuFenMiaoToLonLat;
import net.qhzw.common.util.MultipartFileToFile;
import net.qhzw.common.util.TxtUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.*;

@RestController
@RequestMapping("test")
public class TestController {

    public static void main(String[] args) {
        String path = "d://tem//地图元数据.txt";
        File file = new File(path);
        List<String> fileContent = TxtUtil.getFileContent(file);
        Map<String, String> map = TxtUtil.getFileContent(fileContent);
        String urcornerlatitude = map.get("URCORNERLATITUDE");
        String ulcornerlatitude = map.get("ULCORNERLATITUDE");
        String urcornerlongitude = map.get("URCORNERLONGITUDE");
        String lrcornerlatitude = map.get("LRCORNERLATITUDE");
        String lrcornerlongitude = map.get("LRCORNERLONGITUDE");
        String llcornerlatitude = map.get("LLCORNERLATITUDE");
        String ulcornerlongitude = map.get("ULCORNERLONGITUDE");
        String llcornerlongitude = map.get("LLCORNERLONGITUDE");

        System.out.println(urcornerlatitude);
        System.out.println(ulcornerlatitude);
        System.out.println(urcornerlongitude);
        System.out.println(lrcornerlatitude);
        System.out.println(llcornerlatitude);
        System.out.println(lrcornerlongitude);
        System.out.println(llcornerlongitude);
        System.out.println(ulcornerlongitude);


    }


}
